﻿using System.Globalization;
using System.Windows.Data;

namespace VM.Start.Assets.Converter
{
    public class MultiParameterConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
        {
            if (values.Length >= 2)
            {
                return Tuple.Create(values[0], values[1]); // 将两个参数打包为 Tuple
            }
            return null;
        }

        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
